\hypertarget{ks0108_8h}{
\section{front\_\-panel/ks0108.h File Reference}
\label{ks0108_8h}\index{front\_\-panel/ks0108.h@{front\_\-panel/ks0108.h}}
}
Graphic LCD driver for HD61202/KS0108 displays.  


{\tt \#include \char`\"{}../global.h\char`\"{}}\par
{\tt \#include \char`\"{}ks0108conf.h\char`\"{}}\par
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \textbf{struct\_\-GrLcdCtrlrStateType}
\item 
struct \textbf{struct\_\-GrLcdStateType}
\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{group__front__panel__group_gc713332b9d7760dbb16cc1e670405c5d}{GLCD\_\-ON\_\-CTRL}~0x3E
\item 
\hypertarget{ks0108_8h_446cf52aba66760960220f901c781f02}{
\#define \textbf{GLCD\_\-ON\_\-DISPLAY}~0x01}
\label{ks0108_8h_446cf52aba66760960220f901c781f02}

\item 
\hypertarget{ks0108_8h_2fe2441b1ffc79257a628fb24a5d2710}{
\#define \textbf{GLCD\_\-START\_\-LINE}~0xC0}
\label{ks0108_8h_2fe2441b1ffc79257a628fb24a5d2710}

\item 
\hypertarget{ks0108_8h_4e319bcb3e68fc8b763223c92d911e1a}{
\#define \textbf{GLCD\_\-SET\_\-PAGE}~0xB8}
\label{ks0108_8h_4e319bcb3e68fc8b763223c92d911e1a}

\item 
\hypertarget{ks0108_8h_b472ff8035ddf5accf35f0c884fae0ed}{
\#define \textbf{GLCD\_\-SET\_\-Y\_\-ADDR}~0x40}
\label{ks0108_8h_b472ff8035ddf5accf35f0c884fae0ed}

\item 
\hypertarget{ks0108_8h_63d557e2ca427bf0a0e37afd56b1bd8e}{
\#define \textbf{GLCD\_\-STATUS\_\-BUSY}~0x80}
\label{ks0108_8h_63d557e2ca427bf0a0e37afd56b1bd8e}

\item 
\hypertarget{ks0108_8h_bb588975f890faebbc4fbecfe7da4a22}{
\#define \textbf{GLCD\_\-STATUS\_\-ONOFF}~0x20}
\label{ks0108_8h_bb588975f890faebbc4fbecfe7da4a22}

\item 
\hypertarget{ks0108_8h_420ae9ad500bf79df303aad56efdfa41}{
\#define \textbf{GLCD\_\-STATUS\_\-RESET}~0x10}
\label{ks0108_8h_420ae9ad500bf79df303aad56efdfa41}

\item 
\hypertarget{ks0108_8h_cf8a9874f749fdb5087f51629ff9b70b}{
\#define \textbf{GLCD\_\-NUM\_\-CONTROLLERS}~2}
\label{ks0108_8h_cf8a9874f749fdb5087f51629ff9b70b}

\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
\hypertarget{ks0108_8h_a94cdaae410c75f4866f089b223a269e}{
typedef struct struct\_\-GrLcdCtrlrStateType \textbf{GrLcdCtrlrStateType}}
\label{ks0108_8h_a94cdaae410c75f4866f089b223a269e}

\item 
\hypertarget{ks0108_8h_d7ec5afadbd258ee648eb9645201e051}{
typedef struct struct\_\-GrLcdStateType \textbf{GrLcdStateType}}
\label{ks0108_8h_d7ec5afadbd258ee648eb9645201e051}

\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hypertarget{ks0108_8h_f595d74adc1f2f80f8c87128aaf6d720}{
void \textbf{glcd\_\-init\_\-hw} (void)}
\label{ks0108_8h_f595d74adc1f2f80f8c87128aaf6d720}

\item 
\hypertarget{ks0108_8h_b68f265519f54c981d10a92c103370a8}{
void \textbf{glcd\_\-busy\_\-wait} (u08 controller)}
\label{ks0108_8h_b68f265519f54c981d10a92c103370a8}

\item 
\hypertarget{ks0108_8h_908a5d205a533277b5595cb85c2d3fe8}{
void \textbf{glcd\_\-control\_\-write} (u08 controller, u08 data)}
\label{ks0108_8h_908a5d205a533277b5595cb85c2d3fe8}

\item 
\hypertarget{ks0108_8h_14cc330c5e187f1569afaad56538a93c}{
u08 \textbf{glcd\_\-control\_\-read} (u08 controller)}
\label{ks0108_8h_14cc330c5e187f1569afaad56538a93c}

\item 
\hypertarget{ks0108_8h_883ae2b07c7bd2d07e95353ed222f917}{
void \textbf{glcd\_\-data\_\-write} (u08 data)}
\label{ks0108_8h_883ae2b07c7bd2d07e95353ed222f917}

\item 
\hypertarget{ks0108_8h_b9907c9f27aaa97de0ca4461d1ab6ac2}{
u08 \textbf{glcd\_\-data\_\-read} (void)}
\label{ks0108_8h_b9907c9f27aaa97de0ca4461d1ab6ac2}

\item 
\hypertarget{ks0108_8h_52f3f5e12b41ad2f8ce6968d70b270a6}{
void \textbf{glcd\_\-set\_\-x\_\-address} (u08 xAddr)}
\label{ks0108_8h_52f3f5e12b41ad2f8ce6968d70b270a6}

\item 
\hypertarget{ks0108_8h_e9921d02659162adc5c80edaaa00ec41}{
void \textbf{glcd\_\-set\_\-y\_\-address} (u08 yAddr)}
\label{ks0108_8h_e9921d02659162adc5c80edaaa00ec41}

\item 
\hypertarget{ks0108_8h_9e8e978539fa1bd4b5ec920f3a8bde4e}{
u08 \textbf{glcd\_\-get\_\-x\_\-address} (void)}
\label{ks0108_8h_9e8e978539fa1bd4b5ec920f3a8bde4e}

\item 
\hypertarget{ks0108_8h_f5c1ea8f46a79970ac05df9bcf92ca3a}{
u08 \textbf{glcd\_\-get\_\-y\_\-address} (void)}
\label{ks0108_8h_f5c1ea8f46a79970ac05df9bcf92ca3a}

\item 
\hypertarget{ks0108_8h_7506e0de367f8892948d7a365f4c311c}{
u08 \textbf{get\_\-data\_\-port} (void)}
\label{ks0108_8h_7506e0de367f8892948d7a365f4c311c}

\item 
\hypertarget{ks0108_8h_c36b70ff7aeeb8d5aa3c7f0508cf701a}{
void \hyperlink{ks0108_8h_c36b70ff7aeeb8d5aa3c7f0508cf701a}{glcd\_\-init} (void)}
\label{ks0108_8h_c36b70ff7aeeb8d5aa3c7f0508cf701a}

\begin{CompactList}\small\item\em Initialize the display, clear it, and prepare it for access. \item\end{CompactList}\item 
\hypertarget{ks0108_8h_feecdc62c85f9151a607c15b23befe4e}{
void \hyperlink{ks0108_8h_feecdc62c85f9151a607c15b23befe4e}{glcd\_\-clear\_\-screen} (void)}
\label{ks0108_8h_feecdc62c85f9151a607c15b23befe4e}

\begin{CompactList}\small\item\em Clear the display. \item\end{CompactList}\item 
\hypertarget{ks0108_8h_380c787b62bfd450a12c90111ec56426}{
void \hyperlink{ks0108_8h_380c787b62bfd450a12c90111ec56426}{glcd\_\-home} (void)}
\label{ks0108_8h_380c787b62bfd450a12c90111ec56426}

\begin{CompactList}\small\item\em Set display memory access point back to upper,left corner. \item\end{CompactList}\item 
\hypertarget{ks0108_8h_f72a547a292fd3c253e590aeaf68a114}{
void \hyperlink{ks0108_8h_f72a547a292fd3c253e590aeaf68a114}{glcd\_\-goto\_\-char} (u08 line, u08 col)}
\label{ks0108_8h_f72a547a292fd3c253e590aeaf68a114}

\begin{CompactList}\small\item\em Set display memory access point to row \mbox{[}line\mbox{]} and column \mbox{[}col\mbox{]} assuming 5x7 font. \item\end{CompactList}\item 
\hypertarget{ks0108_8h_d2a49072f84a8a0d733abb18415330b6}{
void \hyperlink{ks0108_8h_d2a49072f84a8a0d733abb18415330b6}{glcd\_\-set\_\-address} (u08 x, u08 yLine)}
\label{ks0108_8h_d2a49072f84a8a0d733abb18415330b6}

\begin{CompactList}\small\item\em Set display memory access point to \mbox{[}x\mbox{]} horizontal pixel and \mbox{[}y\mbox{]} vertical line. \item\end{CompactList}\item 
\hypertarget{ks0108_8h_10e82ebaa327338315012fcdeeda0969}{
void \hyperlink{ks0108_8h_10e82ebaa327338315012fcdeeda0969}{glcd\_\-start\_\-line} (u08 start)}
\label{ks0108_8h_10e82ebaa327338315012fcdeeda0969}

\begin{CompactList}\small\item\em Set display memory access point to row \mbox{[}line\mbox{]} and column \mbox{[}col\mbox{]} assuming 5x7 font. \item\end{CompactList}\item 
\hypertarget{ks0108_8h_826904cc0f64d1879cf63aec34d4374f}{
void \hyperlink{ks0108_8h_826904cc0f64d1879cf63aec34d4374f}{glcd\_\-delay} (u16 p)}
\label{ks0108_8h_826904cc0f64d1879cf63aec34d4374f}

\begin{CompactList}\small\item\em Generic delay routine for timed glcd access. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Graphic LCD driver for HD61202/KS0108 displays. 



Definition in file \hyperlink{ks0108_8h-source}{ks0108.h}.